package com.tonghe7.dao;

import com.tonghe7.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Date:2021/12/28- 12- 28- 11:48
 **/
public interface TeacherMapper {
    @Select("select * from teacher")
    List<Teacher> getTeacherList();

    //获取指定学生下的所有学生及老师的信息
    Teacher getTeacher(@Param("tid")int id);
    Teacher getTeacher2(@Param("tid")int id);
}
